<?php

namespace Modules\DataCheck\Exceptions;

use Modules\DataCheck\Enums\ErrorEnum;
use Symfony\Component\HttpKernel\Exception\HttpException;

class ImportSourceFileException extends HttpException
{
    public function __construct(string $message, ErrorEnum $code)
    {
        parent::__construct($code->value, $message ?: $code->message());
    }
}